<?php
    header("Content-type:text/html;charset=utf-8");

    $goodsId = $_GET["goodsId"];

    $conn = mysql_connect("localhost","root","root");

    mysql_select_db("2107");

    $result = mysql_query("select * from goodslist where goodslist_id = $goodsId",$conn);

    $obj = mysql_fetch_assoc($result);

    $arr = ["key1"=>$obj["goodsList_title"],"key2"=>$obj["goodsList_describe"]];

    echo json_encode($arr);

    mysql_close($conn);
?>